package org.hitchhike.core.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hitchhike.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Entity
@Table(name = "tb_comment")
@EqualsAndHashCode(callSuper = false)
public class Comment extends BaseEntity {

  private String commentContent;

  private Date commentTime;

  @ManyToOne(fetch = FetchType.LAZY)
  private Order order;

  @ManyToOne(fetch = FetchType.LAZY)
  private User user;

}
